:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #f39c12;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-gray);
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 20px;
}

.upload-area {
    text-align: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f3f8fe;
}

.img-preview {
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-panel {
    background: #f3f8fe;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: bold;
    color: var(--dark-gray);
}

.result-value {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.btn-custom-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-custom-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.btn-custom-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-custom-secondary:hover {
    background: #e2e6ea;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.table-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.custom-table th {
    background: #f3f8fe;
    color: var(--dark-gray);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover {
    background: #f9f9f9;
}

.thumbnail {
    max-width: 80px;
    max-height: 80px;
    border-radius: 5px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .result-panel {
        padding: 12px 15px;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 8px 10px;
    }
}